<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>西安新东方微信_西安新东方学校</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="设备预约表单读取">
    <meta name="keywords" content="设备预约表单读取">
    <meta name="author" content="XIAN Neworiental School Infomatiom Dept.">

    <!-- Le styles -->
    <link href="css/xian.css" rel="stylesheet">
    <link href="css/xian-responsive.css" rel="stylesheet">
    <link href="css/docs.css" rel="stylesheet">

    <link href="js/google-code-prettify/prettify.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="../js/html5shiv.js"></script>
    <![endif]-->
<style type="text/css">

.body1{
  margin:0px auto;
  float:none;

  }

.teacher_all{
  padding:10px 0px;
  width:450px;
  display:block;
  outline:hidden;
  overflow:hidden;
  float:left;
  }
.teacher_all2{
  padding:10px 0px;
  width:460px;
  display:block;
  outline:hidden;
  overflow:hidden;
  float:left; 
  }
.teacher_title{
  margin:0 auto;
  border:1px solid #09F;
  width:95%;
  margin:10px 10px;
  overflow:hidden;
  display:block;
  background-color:#5EC4FF;
  font-size:48px;
  color:#ffffff;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  padding:15px;
  text-align:center;
  font-weight:bold;
  }
.teacher_title2{
  margin:0 auto;
  border:1px solid #f60;
  width:95%;
  margin:10px 10px;
  overflow:hidden;
  display:block;
  background-color:#FF986A;
  font-size:48px;
  color:#ffffff;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  padding:15px;
  text-align:center;
  font-weight:bold;
  }
.teacher{
  border:1px solid #09F;
  width:420px;
  overflow:hidden;
  display:block;
  margin:10px 2px;
  font-size:12px;
  padding:10px 10px;
  }
.teacher img{
  float:left;
  margin-top:5px;
  margin-right:10px;
  }
.teacher span{
  line-height:20px; 
  color:#09f;
  }

.teacher2{
  border:1px solid #f60;
  width:420px;
  overflow:hidden;
  display:block;
  margin:10px 2px;
  font-size:12px;
  padding:10px 10px;
  outline:hidden;
  }
.teacher2 img{
  float:right;
  margin-top:5px;
  margin-right:10px;
  }
.teacher2 span{
  line-height:20px; 
  color:#F60;
  }
.table_orange {
border-left:#fff 3px solid;
border-bottom:#fff 3px solid;
margin:20px auto;
font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
font-size:12px;
text-align:center;
color:#666;
}
.table_orange tr td{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
padding:5px;
background-color:#FDE4D0;
  }
.table_orange tr th{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#F79646;
  }
.table_green {
border:8px; 
border-left:#fff 3px solid;
border-bottom:#fff 3px solid;
margin:20px auto;
font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
font-size:15px;
text-align:center;
color:black;
}
.table_green tr td{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
padding:5px;
background-color:#32CD99;
  }
.table_green tr th{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#1ABC9C;
  }
.table_blue {
border-left:#fff 3px solid;
border-bottom:#fff 3px solid;
border-top:#fff 3px solid;
margin:20px auto;
font-family:SimSun,Verdana, Geneva, sans-serif;
color:#666;
font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
font-size:12px;
text-align:center;
}
.table_blue tr td{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#D8F0FF;}
.table_blue tr th{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#39F;
  } 
.table_blue tr .tt{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#64BDE7;
  }   
.table_blue tr .tp{

border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#ffffff;
  } 
.table_purple {
border-left:#fff 3px solid;
border-bottom:#fff 3px solid;
border-top:#fff 3px solid;
margin:20px auto;
font-family:SimSun,Verdana, Geneva, sans-serif;
color:#666;
font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
font-size:12px;
text-align:center;
}
.table_purple tr td{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#E5D4FF;}
.table_purple tr th{
border-right:#fff 3px solid;
border-top:#fff 3px solid;
text-align:center;
padding:5px;
background-color:#A477FF;
  } 
.span_title_orange{
  text-align:center;
font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  color:#F60;
  border:0px;
  font-weight:bold; 
  }
.span_title_purple{
  text-align:left;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:16px;
  color:#63C;
  border:0px;
  font-weight:bold;
  }
.span_title_purple_bold{
  text-align:center;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  color:#fff;
  margin-bottom:20px; 
  border:0px;
  font-weight:bold;
  }
.span_title_white_bold{
  text-align:center;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:26px;
  color:#fff;
  margin-bottom:20px; 
  border:0px;
  font-weight:bold;
  }
.span_title_blue{
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:16px;
  text-align:center;
  font-weight:bold;
  color:#0066ff;
  margin-bottom:20px; 
  }
.span_title_blue2{
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  text-align:middle;
  font-weight:bold;
  color:#0066ff;
  margin-bottom:20px; 
  }
.span_title_red{
  display:inline;
  text-align:middle;
  padding:5px;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  font-weight:bold;
  color:#f00;
  margin-bottom:20px; 
  }
.span_title_green{
  display:inline;
  text-align:middle;
  padding:5px;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  font-weight:bold;
  color:#033;
  }
.span_title_green_small{
  display:inline;
  text-align:middle;
  padding:5px;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:12px;
  font-weight:bold;
  color:#033;
  }
.span_title_green_light{
  text-align:middle;
  padding:5px;
  font-family:"Microsoft YaHei",SimSun,Verdana, Geneva, sans-serif;
  font-size:14px;
  font-weight:bold;
  color:#096;
  }
.submit_orange {
    color: #f00;
}
.submit_orange a:link {
    color: #f00;
    text-decoration: none;
}
.submit_orange a:visited {
    color: #f00;
    text-decoration: none;
}
.submit_orange a:hover {
    color: #ffffff;
    background-color: #f00;
  font-weight:bold;
}
.submit_blue {
    color: #39F;
  text-decoration: none;
  font-weight:bold;
}
.submit_blue a:link {
    color: #39F;
    text-decoration: none;
  font-weight:bold;
}
.submit_blue a:visited {
    color: #39F;
    text-decoration: none;
  font-weight:bold;
}
.submit_blue a:hover {
    color: #ffffff;
    background-color: #39F;
  padding:5px;
  font-weight:bold;}
.nofloat{
  float:none;}
#seven{  
  width: 1200px;
  height: 120px;
  background-color: #32CD99;
  margin: auto;
  color: black;
  border-bottom: dashed 1px white;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align:center;
}
#seven h2{
  font-size: 20px;
  float:right;
}


</style>



    
    <!--集团统计开始-->
<!--neworiental全站异步 google分析开始-->
<script>
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20005525-1']);
  _gaq.push(['_setDomainName', '.xdf.cn']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_setAllowHash', false]);
  _gaq.push(['_addOrganic', 'soso', 'w']);
  _gaq.push(['_addOrganic', 'yodao', 'q']);
  _gaq.push(['_addOrganic', 'sogou', 'query']);
  _gaq.push(['_addOrganic', 'gougou', 'search']);
  _gaq.push(['_addOrganic', 'so.360.cn', 'q']);
  _gaq.push(['_trackPageview']);

</script>
<!-- google分析结束-->

  </head>

  <body data-spy="scroll" data-target=".bs-docs-sidebar">

  <div id="seven">
   <h1>西安新东方星馆七号微信设备租借表单</h1>
   <h2>Information Management: Yao Xi</h2>
  </div> 


<?php
    /* 连接选择数据库 */
    $link = mysql_connect("xaxdfdata.mysql.rds.aliyuncs.com:3306", "xaxdfhr", "wearetheworld1985")
    or die("Could not connect : " . mysql_error());
    $link = mysql_query("SET NAMES 'UTF8'");
    print "Connected successfully";
    mysql_select_db("dbd86kw9q83xzn72") or die("Could not select database");

    /* 执行 SQL 查询 */
    $query = "SELECT * FROM it";
    $result = mysql_query($query) or die("Query failed : " . mysql_error());

    /* 在 HTML 中打印结果 */
      
    print "<table  class=\"table_green\">\n";
    print "<tr><td>序号</td><td>笔记本</td><td>投影</td><td>部门</td><td>电话</td><td>使用日期</td><td>归还日期</td><td>提交日期</td><td>申请人</td></tr>\n";

    while ($line = mysql_fetch_array($result, MYSQL_ASSOC)){
      
        print "\t<tr>\n";
        foreach ($line as $col_value) {
            print "\t\t<td>$col_value</td>\n";

        }
        print "\t</tr>\n";
    }
    print "</table>\n";

    /* 释放资源 */
    mysql_free_result($result);


    /* 断开连接 */
    $link = mysql_close();
?> 

  </body>
</html>